<style type="text/css">
/* <![CDATA[ */

table.maintd
{
	border-width: 0 0 0 0;
    border-spacing: 0;
    border-collapse: collapse;
    padding: 4px;
    background-color: #cccccc;
    -moz-border-radius: 20px;
	font-family:Arial, Helvetica, sans-serif;
}
{
table.sample th {
	border-width: 1px 1px 1px 1px;
	padding: 1px 1px 1px 1px;
	border-style: inset inset inset inset;
	border-color: gray gray gray gray;
	background-color: white;
	-moz-border-radius: 0px 0px 0px 0px;
}
table.sample td {
	border-width: 1px 1px 1px 1px;
	padding: 1px 1px 1px 1px;
	border-style: inset inset inset inset;
	border-color: gray gray gray gray;
	background-color: white;
	-moz-border-radius: 0px 0px 0px 0px;
}



/* ]]> */
.style1 {font-family: Arial, Helvetica, sans-serif}
</style>
<table width="100%" align="center"><tr><td>

<?

include "../config.php";
require_once "../lib/tb_functions.php";

$configName=$_REQUEST["config"];
if ($configName == "" )
	$configName="tbconfig";
$tb_config = ReadConfig($configName);


if ( !isset ($tb_config["PN"] ) || $tb_config["PN"]>20 || $tb_config["PN"]<1 )
	$tb_config["PN"]=2;

${"PN" . $tb_config["PN"] }="SELECTED";
${"CS" . $tb_config["CS"] }="SELECTED";
try {
	$tb_config["BW"]=intval($tb_config["BW"]);
}
catch (Exception $e) {
	$tb_config["BW"]=10;
}

?>
<table class="maintd" width="900px" align="center"><tr><td colspan="3" align="center"><h1 class="maintd style1">TRNN TOKBOX VIDEO CONFERENCE </h1></td>
</tr>

<tr><td>Generate a new key before the start of a new show</td><td valign="top"><FORM method=post action="tbconfig_update.php"><input type=hidden name="UPDATEKEY" value="yes" ><INPUT name="config" type=hidden value="<?=$configName?>"><INPUT name="BTN_UPDATEKEY" TYPE="submit" VALUE="Generate New Key" ONCLICK=""><? echo  $tb_config["SESSIONID"]?>  </FORM></td>

<td valign="top" rowspan="6">
<form name="hcc" id="hcc">	

<table border="0" cellspacing="2" cellpadding="0">
	<tr height="5"><td colspan=2></td></tr>
	<tr height="5">

		<td id="vzorec" width="30"></td>
		<td valign="bottom"><p>Copy and paste in color fields: 
		    <input type="text" name="barva" id="barva" style="font-family:Verdana;height:30px; width:115px; font-size:15px" maxlength="7" size="9" /></p></td>
	</tr>
	</table>
	
	<br>
<table border="1" cellspacing="0" cellpadding="0"  style="border-collapse:collapse;" bordercolor="#CCCCCC"><tr><td>
<table width="300" border="0" cellspacing="1" cellpadding="0" >
	<tr height="5">
		<td bgColor="#190707" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#2a0a0a" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#3b0b0b" onClick="Barva(this.bgColor)">&nbsp;</td>

		<td bgColor="#610b0b" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#8a0808" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#b40404" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#df0101" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#ff0000" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#fe2e2e" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#fa5858" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#f78181" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#f5a9a9" onClick="Barva(this.bgColor)">&nbsp;</td>

		<td bgColor="#f6cece" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#f8e0e0" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#fbefef" onClick="Barva(this.bgColor)">&nbsp;</td>
	</tr>
	<tr height="5">
		<td bgColor="#191007" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#2a1b0a" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#3b240b" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#61380b" onClick="Barva(this.bgColor)">&nbsp;</td>

		<td bgColor="#8a4b08" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#b45f04" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#df7401" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#ff8000" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#fe9a2e" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#faac58" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#f7be81" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#f5d0a9" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#f6e3ce" onClick="Barva(this.bgColor)">&nbsp;</td>

		<td bgColor="#f8ece0" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#fbf5ef" onClick="Barva(this.bgColor)">&nbsp;</td>
	</tr>
	<tr height="5">
		<td bgColor="#181907" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#292A0A" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#393B0B" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#5e610b" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#868A08" onClick="Barva(this.bgColor)">&nbsp;</td>

		<td bgColor="#AEB404" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#D7DF01" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#FFFF00" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#F7FE2E" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#F4FA58" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#F3F781" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#F2F5A9" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#F5F6CE" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#F7F8E0" onClick="Barva(this.bgColor)">&nbsp;</td>

		<td bgColor="#FBFBEF" onClick="Barva(this.bgColor)">&nbsp;</td>
	</tr>
	<tr height="5">
		<td bgColor="#101907" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#1B2A0A" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#243b0b" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#38610B" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#4B8A08" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#5FB404" onClick="Barva(this.bgColor)">&nbsp;</td>

		<td bgColor="#74DF00" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#80FF00" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#9AFE2E" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#ACFA58" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#BEF781" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#D0F5A9" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#E3F6CE" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#ECF8E0" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#F5FBEF" onClick="Barva(this.bgColor)">&nbsp;</td>

	</tr>
	<tr height="5">
		<td bgColor="#071907" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#0A2A0A" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#0B3B0B" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#0B610B" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#088A08" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#04B404" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#01DF01" onClick="Barva(this.bgColor)">&nbsp;</td>

		<td bgColor="#00FF00" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#2EFE2E" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#58FA58" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#81F781" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#A9F5A9" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#CEF6CE" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#E0F8E0" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#EFFBEF" onClick="Barva(this.bgColor)">&nbsp;</td>
	</tr>

	<tr height="5">
		<td bgColor="#071910" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#0A2A1B" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#0B3B24" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#0B6138" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#088A4B" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#04B45F" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#01DF74" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#00FF80" onClick="Barva(this.bgColor)">&nbsp;</td>

		<td bgColor="#2EFE9A" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#58FAAC" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#81F7BE" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#A9F5D0" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#CEF6E3" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#E0F8EC" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#EFFBF5" onClick="Barva(this.bgColor)">&nbsp;</td>
	</tr>
	<tr height="5">

		<td bgColor="#071918" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#0A2A29" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#0B3B39" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#0B615E" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#088A85" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#04B4AE" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#01DFD7" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#00FFFF" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#2EFEF7" onClick="Barva(this.bgColor)">&nbsp;</td>

		<td bgColor="#58FAF4" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#81F7F3" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#A9F5F2" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#CEF6F5" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#E0F8F7" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#EFFBFB" onClick="Barva(this.bgColor)">&nbsp;</td>
	</tr>
	<tr height="5">
		<td bgColor="#071019" onClick="Barva(this.bgColor)">&nbsp;</td>

		<td bgColor="#0A1B2A" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#0B243B" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#0B3861" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#084B8A" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#045FB4" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#0174DF" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#0080FF" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#2E9AFE" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#58ACFA" onClick="Barva(this.bgColor)">&nbsp;</td>

		<td bgColor="#81BEF7" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#A9D0F5" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#CEE3F6" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#E0ECF8" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#EFF5FB" onClick="Barva(this.bgColor)">&nbsp;</td>
	</tr>
	<tr height="5">
		<td bgColor="#070719" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#0A0A2A" onClick="Barva(this.bgColor)">&nbsp;</td>

		<td bgColor="#0B0B3B" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#0B0B61" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#08088A" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#0404B4" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#0101DF" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#0000FF" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#2E2EFE" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#5858FA" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#8181F7" onClick="Barva(this.bgColor)">&nbsp;</td>

		<td bgColor="#A9A9F5" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#CECEF6" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#E0E0F8" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#EFEFFB" onClick="Barva(this.bgColor)">&nbsp;</td>
	</tr>
	<tr height="5">
		<td bgColor="#100719" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#1B0A2A" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#240B3B" onClick="Barva(this.bgColor)">&nbsp;</td>

		<td bgColor="#380B61" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#4B088A" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#5F04B4" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#7401DF" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#8000FF" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#9A2EFE" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#AC58FA" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#BE81F7" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#D0A9F5" onClick="Barva(this.bgColor)">&nbsp;</td>

		<td bgColor="#E3CEF6" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#ECE0F8" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#F5EFFB" onClick="Barva(this.bgColor)">&nbsp;</td>
	</tr>
	<tr height="5">
		<td bgColor="#190718" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#2A0A29" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#3B0B39" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#610B5E" onClick="Barva(this.bgColor)">&nbsp;</td>

		<td bgColor="#8A0886" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#B404AE" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#DF01D7" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#FF00FF" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#FE2EF7" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#FA58F4" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#F781F3" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#F5A9F2" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#F6CEF5" onClick="Barva(this.bgColor)">&nbsp;</td>

		<td bgColor="#F8E0F7" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#FBEFFB" onClick="Barva(this.bgColor)">&nbsp;</td>
	</tr>
	<tr height="5">
		<td bgColor="#190710" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#2A0A1B" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#3B0B24" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#610B38" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#8A084B" onClick="Barva(this.bgColor)">&nbsp;</td>

		<td bgColor="#B4045F" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#DF0174" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#FF0080" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#FE2E9A" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#FA58AC" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#F781BE" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#F5A9D0" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#F6CEE3" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#F8E0EC" onClick="Barva(this.bgColor)">&nbsp;</td>

		<td bgColor="#FBEFF5" onClick="Barva(this.bgColor)">&nbsp;</td>
	</tr>
	<tr height="5">
		<td></td>
	</tr>
	<tr height="5">
		<td bgColor="#000000" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#0b0b0b" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#151515" onClick="Barva(this.bgColor)">&nbsp;</td>

		<td bgColor="#1c1c1c" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#2e2e2e" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#424242" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#585858" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#6e6e6e" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#848484" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#a4a4a4" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#bdbdbd" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#d8d8d8" onClick="Barva(this.bgColor)">&nbsp;</td>

		<td bgColor="#e6e6e6" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#f2f2f2" onClick="Barva(this.bgColor)">&nbsp;</td>
		<td bgColor="#FFFFFF" onClick="Barva(this.bgColor)">&nbsp;</td>
	</tr>
	</table>
	</td></tr></table>
	

	</form>	


<!-- javaskripti -->
<script type="text/javascript" src="http://d2sdffj0zbd32k.cloudfront.net/colorscripts_0.1.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/yui/2.8.0r4/build/yahoo-dom-event/yahoo-dom-event.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/yui/2.8.0r4/build/dragdrop/dragdrop-min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/yui/2.8.0r4/build/slider/slider-min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/yui/2.8.0r4/build/element/element-min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/yui/2.8.0r4/build/colorpicker/colorpicker-min.js"></script>

</td></tr>
<FORM METHOD=POST  enctype="multipart/form-data" ACTION="tbconfig_update.php">
<!--
<tr><td valign="top">Banner Header.  Max size 900px X 100px</td><td valign="top">
<INPUT TYPE=FILE NAME="uploadbanner">
//-->
<INPUT name="config" type=hidden value="<?=$configName?>">

<tr><td valign="top">Number of Participants</td><td valign="top"><select name="TB_PN">
  <option value="1" <?echo $PN1 ?>>1</option>
  <option value="2" <?echo $PN2 ?>>2</option>
  <option value="3" <?echo $PN3 ?>>3</option>
  <option value="4" <?echo $PN4 ?>>4</option>
  <option value="5" <?echo $PN5 ?>>5</option>
  <option value="6" <?echo $PN6 ?>>6</option>
  <option value="7" <?echo $PN7 ?>>7</option>
  <option value="8" <?echo $PN8 ?>>8</option>
  <option value="9" <?echo $PN9 ?>>9</option>
  <option value="10" <?echo $PN10 ?>>10</option>
  <option value="11" <?echo $PN11 ?>>11</option>
  <option value="12" <?echo $PN12 ?>>12</option>
  <option value="13" <?echo $PN13 ?>>13</option>
  <option value="14" <?echo $PN14 ?>>14</option>
  <option value="15" <?echo $PN15 ?>>15</option>
  <option value="16" <?echo $PN16 ?>>16</option>
  <option value="17" <?echo $PN17 ?>>17</option>
  <option value="18" <?echo $PN18 ?>>18</option>
  <option value="19" <?echo $PN19 ?>>19</option>
  <option value="20" <?echo $PN20 ?>>20</option>
</select></td></tr>

<tr><td valign="top">Border Width (table width 900PX)</td><td><input name="TB_BW" type="text" size="25" value="<?echo $tb_config["BW"]?>" ></td></tr>
<tr><td valign="top">Cell Size</td><td valign="top"><select name="TB_CS">
  <option value="210X160" <?echo $CS210X160 ?> >210X160</option>
  <option value="280X180" <?echo $CS280X180 ?> >280X180</option>
  <option value="440X290" <?echo $CS440X290 ?> >440X290</option>
</select></td></tr>

<!--
<tr><td valign="top">Background Color (Select a color from the color picker below and paste it in this field)</td><td><input name="TB_BC" type="text" size="25" value="<?echo $tb_config["BC"]?>" ></td></tr>
//-->
<tr><td valign="top">Cell Border Color (Select a color from the color picker below and paste it in this field)</td><td><input name="TB_CC" type="text" size="25" value="<?echo $tb_config["CC"]?>" ></td></tr>


<tr><td >&nbsp;</td><td><INPUT TYPE="submit"  VALUE="Save Settings" ></FORM></td></tr>




<tr>
  <td valign=top colspan="3" align="center">
<?
list($cell_width,$cell_height)=explode("X",$tb_config["CS"],2);
$tdwidth=$cell_width+$tb_config["BW"];
$tdcount= intval( 900 / $tdwidth );
$trcount= intval( ($tb_config["PN"] + $tdcount -1 ) / $tdcount );
echo $tb_config["PN"] . " " . $tb_config["CS"] . " CellWidth:$cell_width Column: $tdcount Rows:$trcount <br>";
?>
<br>
<table border=0 cellspace="<?echo $tb_config["BW"]?>" cellpadding="<?echo $tb_config["BW"]?>" style="background:<?echo $tb_config["CC"]?>; color: <?echo $tb_config["CC"]?>;" width=900 >
<? 
 
for  ($i=0;$i< $trcount; $i++)
{
print "<tr>";
   for  ($j=0;$j< $tdcount; $j++)
   {
	print "<td><img width=\"$cell_width\" height=\"$cell_height\" src=\"../config/people.jpg\" border=0></td>";
   }
print "</tr>\n";

}
?>

</table>

</td><td valign="top">




</td></tr>






</table>


</td></tr></table>









